<?php
if (! defined ( FLAG )){ trigger_error('Access error!', E_USER_ERROR); die; }
/**
 * Основные константы
 * @author Sogimu
 *
 * 29.12.2011
 */

//Директории
$CONST ['CORE_DIR'] = 'core';
$CONST ['LIBS_DIR'] = $CONST ['CORE_DIR'].'/'.'libs';
$CONST ['PAGES_DIR'] = 'pages';
$CONST ['TEMPLATE_TOOL'] = 'template_tool';
$CONST ['CLASS_DIR'] = 'class';
$CONST ['JS_DIR'] = 'js';
$CONST ['CSS_DIR'] = 'css';
$CONST ['MODULES_DIR'] = 'modules';
$CONST ['TEMPLATE_TOOL_DIR'] = $CONST['CORE_DIR'].'/'.$CONST['TEMPLATE_TOOL'];

//Адреса системных шаблонов
$CONST ['Include_js' ] = $CONST ['TEMPLATE_TOOL_DIR'].'/include_js.tpl';
$CONST ['Include_css'] = $CONST ['TEMPLATE_TOOL_DIR'].'/include_css.tpl';
$CONST ['Include_meta_head'] = $CONST ['TEMPLATE_TOOL_DIR'].'/include_meta_head.tpl';
$CONST ['Include_modules'] = $CONST ['TEMPLATE_TOOL_DIR'].'/include_modules.tpl';

//Права пользователей
$CONST ['IS_BANNED'] = -1;
$CONST ['IS_GUEST'] = 0;
$CONST ['IS_USER'] = 1;
$CONST ['IS_MODER'] = 2;
$CONST ['IS_ADMIN'] = 3;
$CONST ['IS_GLOBAL'] = 4;

foreach($CONST as $var => $value){
	define ( $var, $value );
}

global $STR;
$STR->setVar(array('CONST'),$CONST);

?>
